@import "./base/animation.css";
@import "./base/color.css";
@import "./base/font.css";
@import "./base/layout.css";

/* 根元素样式 设置页面背景、字体大小、字体颜色，字符间距、长单词换行 */
/* 设置常用元素尺寸规则 */
/* #ifndef APP-PLUS-NVUE */
view,
scroll-view,
swiper,
swiper-item,
cover-view,
cover-image,
icon,
text,
rich-text,
progress,
button,
checkbox,
form,
input,
label,
radio,
slider,
switch,
textarea,
navigator,
audio,
camera,
image,
video {
  box-sizing: border-box;
}

.safe-area {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* 遮罩 */
.mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 100;
}

/* 弹窗 */
.mask-box {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  z-index: 101;
  min-width: 200rpx;
  min-height: 200rpx;
}

.bottom-fill {
  height: 0;
  height: constant(safe-area-inset-bottom);
  height: env(safe-area-inset-bottom);
}

.fix-bot {
  box-sizing: content-box;
  padding-bottom: 0;
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

$mui-bordercolor: #dadbde;

.mui-border {
  border-width: 0.5px !important;
  border-color: $mui-bordercolor !important;
  border-style: solid;
}

.mui-border-top {
  border-top-width: 0.5px !important;
  border-color: $mui-bordercolor !important;
  border-top-style: solid;
}

.mui-border-left {
  border-left-width: 0.5px !important;
  border-color: $mui-bordercolor !important;
  border-left-style: solid;
}

.mui-border-right {
  border-right-width: 0.5px !important;
  border-color: $mui-bordercolor !important;
  border-right-style: solid;
}

.mui-border-bottom {
  border-bottom-width: 0.5px !important;
  border-color: $mui-bordercolor !important;
  border-bottom-style: solid;
}

.mui-border-top-bottom {
  border-top-width: 0.5px !important;
  border-bottom-width: 0.5px !important;
  border-color: $mui-bordercolor !important;
  border-top-style: solid;
  border-bottom-style: solid;
}

.mui-reset-button {
  padding: 0;
  background-color: transparent;
  /* #ifndef APP-PLUS */
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  /* #endif */
  /* #ifdef APP-NVUE */
  border-width: 0;
  /* #endif */
}

/* #ifndef APP-NVUE */
.mui-reset-button::after {
  border: none;
}

/* #endif */

/* 边框 */
.round {
  position: relative;
  border-radius: 100rpx;
}

.round:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 200%;
  height: 200%;
  transform: scale(0.5) translate(-50%, -50%);
  border: 1px solid #878787;
  border-radius: 100rpx;
  box-sizing: border-box;
}

.b-b:after {
  position: absolute;
  z-index: 3;
  left: 0;
  top: auto;
  bottom: 0;
  right: 0;
  height: 0;
  content: "";
  transform: scaleY(0.5);
  border-bottom: 1px solid #e0e0e0;
}

.b-t:before {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  right: 0;
  height: 0;
  content: "";
  transform: scaleY(0.5);
  border-bottom: 1px solid #e5e5e5;
}

.b-r:after {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 0;
  bottom: 0;
  width: 0;
  content: "";
  transform: scaleX(0.5);
  border-right: 1px solid #e5e5e5;
}

.b-l:before {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  content: "";
  transform: scaleX(0.5);
  border-left: 1px solid #e5e5e5;
}

.b-b,
.b-t,
.b-l,
.b-r {
  position: relative;
}

/* #endif */

.clamp {
  /* #ifdef APP-PLUS-NVUE */
  lines: 1;
  /* #endif */
  /* #ifndef APP-PLUS-NVUE */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  /* #endif */
}

.wkclamp {
  /* #ifdef APP-PLUS-NVUE */
  lines: 1;
  /* #endif */
  /* #ifndef APP-PLUS-NVUE */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  /* #endif */
}

.clamp1 {
  /* #ifdef APP-PLUS-NVUE */
  lines: 1;
  /* #endif */
  /* #ifndef APP-PLUS-NVUE */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  /* #endif */
}

.clamp2 {
  /* #ifdef APP-PLUS-NVUE */
  lines: 2;
  /* #endif */
  /* #ifndef APP-PLUS-NVUE */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  /* #endif */
}

.clamp3 {
  /* #ifdef APP-PLUS-NVUE */
  lines: 3;
  /* #endif */
  /* #ifndef APP-PLUS-NVUE */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  /* #endif */
}

.clamp4 {
  /* #ifdef APP-PLUS-NVUE */
  lines: 4;
  /* #endif */
  /* #ifndef APP-PLUS-NVUE */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  /* #endif */
}

.clamp5 {
  /* #ifdef APP-PLUS-NVUE */
  lines: 5;
  /* #endif */
  /* #ifndef APP-PLUS-NVUE */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  /* #endif */
}

/* input */
.reset-button {
  padding: 0;
  margin: 0;
  line-height: normal;
  font-size: inherit;
}

.reset-button::after {
  border: none;
}

.button-hover {
  filter: brightness(0.9);
}
/* #ifdef H5 */
/* H5的时候，隐藏滚动条 */
::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
  -webkit-appearance: none;
  background: transparent;
}
/* #endif */
